package com.his.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.his.bean.DzmHisDepartment;
import com.his.service.DzmHisDepartmentService;
import com.his.mapper.DzmHisDepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class DzmHisDepartmentServiceImpl extends ServiceImpl<DzmHisDepartmentMapper, DzmHisDepartment>
implements DzmHisDepartmentService{
@Autowired
    DzmHisDepartmentMapper dzmHisDepartmentMapper;
    @Override
    public List<DzmHisDepartment> selectAll(DzmHisDepartment dzmHisDepartment) {
        return dzmHisDepartmentMapper.selectAll(dzmHisDepartment);
    }

    @Override
    public void add(DzmHisDepartment dzmHisDepartment) {
        dzmHisDepartmentMapper.add(dzmHisDepartment);
    }

    @Override
    public void delete(Integer did) {

        dzmHisDepartmentMapper.delete(did);
    }

    @Override
    public void update(DzmHisDepartment dzmHisDepartment) {

        dzmHisDepartmentMapper.update(dzmHisDepartment);
    }

    @Override
    public DzmHisDepartment selectById(Integer did) {

        return  dzmHisDepartmentMapper.selectByid(did);
    }



}
